<?php if($model->resource_type == Resource::TYPE_IMAGE) : ?>

<img src="<?php echo $model->getFullPath() ?>" />

<?php endif; ?>
